<#include "/pages/common/head.html"/>
	<div id="sidebar">
			<a href="#" class="visible-phone"><i class="icon icon-th-list"></i> Tables</a>
			<ul style="display: block;">
				<li><a href="${CPATH!}/userAdmin/userList"><i class="icon icon-tint"></i> <span>用户管理</span></a></li>
				<li><a href="${CPATH!}/projectAdmin"><i class="icon icon-home"></i> <span>项目管理</span></a></li>
				<li class="active"><a href="${CPATH!}/project/createIndex"><i class="icon icon-pencil"></i> <span>创建项目</span></a></li>
				<li><a href="${CPATH!}/modelAdmin"><i class="icon icon-th"></i> <span>模块管理</span></a></li>
				<li><a href="${CPATH!}/createAdmin"><i class="icon icon-th-list"></i> <span>新建模块</span></a></li>
			</ul>
		</div>

<div id="style-switcher">
	<i class="icon-arrow-left icon-white"></i> <span>Style:</span>
	<a href="#grey"
		style="background-color: #555555; border-color: #aaaaaa;"></a>
	<a href="#blue" style="background-color: #2D2F57;"></a>
	<a href="#red" style="background-color: #673232;"></a>
</div>

<div id="content">
	<div id="content-header">
		<h1>创建项目</h1>
		<div class="btn-group">
			<a class="btn btn-large tip-bottom" title="Manage Files">
				<i class="icon-file"></i>
			</a>
			<a class="btn btn-large tip-bottom" title="Manage Users">
				<i class="icon-user"></i>
			</a>
			<a class="btn btn-large tip-bottom" title="Manage Comments">
				<i class="icon-comment"></i><span class="label label-important">5</span>
			</a>
			<a class="btn btn-large tip-bottom" title="Manage Orders">
				<i class="icon-shopping-cart"></i>
			</a>
		
		<div id="sidebar">
			<a href="#" class="visible-phone"><i class="icon icon-th-list"></i> Tables</a>
			<ul style="display: block;">
				<li><a href="${CPATH!}/userAdmin/userList"><i class="icon icon-tint"></i> <span>用户管理</span></a></li>
				<li><a href="${CPATH!}/projectAdmin"><i class="icon icon-home"></i> <span>项目管理</span></a></li>
				<li class="active"><a href="${CPATH!}/project/createIndex"><i class="icon icon-pencil"></i> <span>创建项目</span></a></li>
				<li><a href="${CPATH!}/modelAdmin"><i class="icon icon-th"></i> <span>模块管理</span></a></li>
				<li><a href="${CPATH!}/createAdmin"><i class="icon icon-th-list"></i> <span>新建模块</span></a></li>
			</ul>
		</div>
	</div>
	
	<div id="breadcrumb">
		<a href="index.html" title="转到主页" class="tip-bottom">
			<i class="icon-home"></i> 主页
		</a>
		<a href="#" class="tip-bottom">创建项目</a>
	</div>
	<#if message??>
    <div class='alert alert-heading'>
		<!--给这个提示框添加一个关闭按钮-->
		{${message}}
		<a href='javascipt:;' class='close' data-dismiss='alert'>关闭</a>
	</div>
	</#if>
	<div class="container-fluid">
		<div class="row-fluid">
			<div class="span12">
				<div class="widget-box">
					<div class="widget-title">
						<span class="icon"> <i class="icon-align-justify"></i>
						</span>
						<h5>创建项目</h5>
					</div>
					<div class="widget-content nopadding">
						<form class="form-horizontal" method="post"
							action="${CPATH!}/project/createIndex/create" name="basic_validate"
							id="basic_validate" novalidate="novalidate" />
						<div class="control-group">
							<label class="control-label">项目名称：</label>
							<div class="controls">
								<input type="text" name="SHOW_NAME" class="required" />
							</div>
						</div>
						<div class="control-group">
							<label class="control-label">工程名称：</label>
							<div class="controls">
								<input type="text" name="NAME" class="required" /> <span
									class="help-block">即项目搭建的工程名</span>
							</div>
						</div>
						<div class="control-group">
							<label class="control-label">GROUP_ID：</label>
							<div class="controls">
								<input type="text" name="GROUPID" class="required" />
							</div>
						</div>
						<div class="control-group">
							<label class="control-label">ARTIFACT_ID：</label>
							<div class="controls">
								<input type="text" name="ARTIFACTID" class="required" />
							</div>
						</div>
						<div class="control-group">
							<label class="control-label">项目版本：</label>
							<div class="controls">
								<input type="text" name="VERSION" class="required" /> <span
									class="help-block">默认0.0.1-SNAPSHOT</span>
							</div>
						</div>
						<div class="control-group">
							<label class="control-label">基础包名：</label>
							<div class="controls">
								<input type="text" name="PACKAGE" class="required" /> <span
									class="help-block">推荐GROUP_ID+ARTIFACT_ID</span>
							</div>
						</div>
						<div class="control-group">
							<label class="control-label">项目类型：</label>
							<div class="controls">
								<label><input type="radio" name="TYPE" value="1" /> war</label>
								<label><input type="radio" name="TYPE" value="2" /> jar</label>
								<label><input type="radio" name="TYPE" value="3" /> pom</label>
							</div>
						</div>
						<div class="control-group">
							<label class="control-label">项目描述：</label>
							<div class="controls">
								<textarea name="DESCRIPTION" class="required" rows="5"></textarea>
							</div>
						</div>
						<div class="control-group">
							<label class="control-label">GIT路径：</label>
							<div class="controls">
								<input type="text" name="GIT_URL" />
							</div>
						</div>
						<div class="control-group">
							<label class="control-label">GIT用户名：</label>
							<div class="controls">
								<input type="text" name="GIT_USERNAME" />
							</div>
						</div>
						<div class="control-group">
							<label class="control-label">GIT密码：</label>
							<div class="controls">
								<input type="text" name="GIT_PASSWROD" />
							</div>
						</div>
						<div class="control-group">
							<label class="control-label">GIT端口：</label>
							<div class="controls">
								<input type="text" name="GIT_PORT" />
							</div>
						</div>
						<div class="control-group">
							<label class="control-label">GIT连接方式：</label>
							<div class="controls">
								<label> <input type="radio" name="GIT_CONN_TYPE"
									value="1" /> ssh
								</label> <label><input type="radio" name="GIT_CONN_TYPE"
									value="0" /> https</label>
							</div>
						</div>
						<div class="control-group">
							<label class="control-label">GIT密钥</label>
							<div class="controls">
								<input type="file" name="GIT_KEY" />
							</div>
						</div>
						<div class="control-group">
							<label class="control-label">数据库主机：</label>
							<div class="controls">
								<input type="text" name="DB_HOST" />
							</div>
						</div>
						<div class="control-group">
							<label class="control-label">数据库用户名：</label>
							<div class="controls">
								<input type="text" name="DB_USERNAME" />
							</div>
						</div>
						<div class="control-group">
							<label class="control-label">数据库密码：</label>
							<div class="controls">
								<input type="text" name="DB_PASSWORD" />
							</div>
						</div>
						<div class="control-group">
							<label class="control-label">数据库端口：</label>
							<div class="controls">
								<input type="text" name="DB_PORT" />
							</div>
						</div>
						<div class="control-group">
							<label class="control-label">数据库类型：</label>
							<div class="controls">
								<input type="text" name="DB_TYPE" />
							</div>
						</div>
						<div class="control-group">
							<label class="control-label">数据库名或用户名：</label>
							<div class="controls">
								<input type="text" name="DB_NAME" />
							</div>
						</div>
						<div class="form-actions">
							<button type="submit" class="btn btn-primary">创建项目</button>
						</div>
						</form>
					</div>
				</div>
			</div>
		</div>


		<#include "/pages/common/foot.html"/>